package com.anita.member.domain.model.member;

/**
 * 头像值对象
 * @author qiu
 * @date 2025/10/17
 * @description
 */
public record Avatar (String value){

    public Avatar {
        // 允许为空，表示没有头像
    }

    public static Avatar empty(){
        return new Avatar(null);
    }

    public static Avatar of(String s) {
        return new Avatar(s);
    }

    public boolean isEmpty() {
        return value == null || value.isEmpty();
    }
}
